﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MacomberMapSystem.Common.Internals
{
    /// <summary>
    /// This class reverses a collection of strings
    /// </summary>
    public class InverseStringSorter : IComparer<String>
    {
        #region IComparer<string> Members
        /// <summary>
        /// Compare two strings
        /// </summary>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns></returns>
        public int Compare(string x, string y)
        {
            return y.CompareTo(x);
        }

        #endregion
    }
}
